﻿using System;
using System.Configuration;
using System.Net.Http;

namespace Microsoft.Cloud.API.AzurePack.Services
{
    /// <summary>
    /// 
    /// </summary>
    public class WAPAdminService : WAPBaseService
    {
        private string token = null;

        public WAPAdminService(string token)
        {
            this.token = token;

            TheHttpClient = new HttpClient();
            TheHttpClient.BaseAddress = new Uri(ConfigurationManager.AppSettings["adminAPIBaseAddress"]);
            //TheHttpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
            TheHttpClient.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", this.token);
        }
    }
}